package com.ai.web.vo;


import java.io.Serializable;
import java.util.Date;

import com.ai.web.annotation.Vo;
import com.tiny.persistence.domain.BgRole;
import com.tiny.persistence.domain.WxRole;

import lombok.Data;


/**
 * The persistent class for the auth_user database table.
 * 
 */
@Data
public class BgUserV implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 4226080239043336357L;

	@Vo(show=false)
	private int id;

	private String password;

	private String username;
	
	private String name;
	
	private String mobilePhone;
	
	private String company;
	
	private String address;
	
    private WxRole wxRole;
    
    private BgRole bgRole;
	
    private Integer isPassed;

    //创建时间
    private Date createTime;
    private String createTimeStr;
    
    public static final int IS_PASSED = 1;
    
	public BgUserV() {
		
	}


	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		BgUserV other = (BgUserV) obj;
		if (id != other.id)
			return false;
		return true;
	}


	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + id;
		return result;
	}


	@Override
	public String toString() {
		return "AuthUserV [id=" + id + ", password=" + password + ", username="
				+ username + ", mobilePhone=" + mobilePhone + ", company="
				+ company + ", address=" + address + ", wxRole=" + wxRole
				+ ", bgRole=" + bgRole + ", isPassed=" + isPassed
				+ "]";
	}

}